let mongoose = require('mongoose');

let collectionsSchema = mongoose.Schema({
    studentId:{
        type:mongoose.SchemaTypes.ObjectId,
        ref:'studentsModel'
    },
    exerciseId:{
        type:mongoose.SchemaTypes.ObjectId,
        ref:'exercisesModel'
    }
});

let collectionsModel = mongoose.model('collectionsModel',collectionsSchema,'collections')